//
//  ExampleView03.m
//  AutoLayoutExample
//
//  Created by LeeJay on 2017/11/9.
//  Copyright © 2017年 Mob. All rights reserved.
//

#import "ExampleView03.h"

@interface ExampleView03 ()

@property (weak, nonatomic) IBOutlet UILabel *label;

@end

@implementation ExampleView03

- (IBAction)action:(id)sender {
    
    static NSString *const string = @"这是一个很长的字符串";
    NSString *content = @"";
    
    NSInteger count = arc4random() % 5;
    
    for (int i = 0; i < count; i++) {
        content = [content stringByAppendingString:string];
    }
    self.label.text = content;
}

@end
